home *** CD-ROM | disk | FTP | other *** search
- // Sample transcendental surface. This is a logarithmic surface, mostly
- // flat, but zooming off to minus infinity near the origin.
- // Polyray input file - Alexander Enzmann
-
- // Set up the camera
- viewpoint {
- from <0,4,-4>
- at <0,0,0>
- up <0,1,0>
- angle 30
- resolution 160, 160
- }
-
- // Set up background color & lights
- background MidnightBlue
- light <10,10,-10>
-
- // Define the color of the sphere
- define matte_red
- texture {
- surface {
- ambient red, 0.1
- diffuse red, 0.5
- specular white, 0.7
- microfacet Reitz 10
- }
- }
-
- define two_unit_sphere
- object { sphere <0,0,0>, 2 }
-
- // Define a logarithmic surface
- object {
- function y - 0.2 * ln(x^2 + 2.0 * z^2)
- matte_red
- bounds two_unit_sphere
- clips two_unit_sphere
- }
-